package com.lancoo.ccas52.mapper;
import java.util.Collection;

import com.lancoo.ccas52.config.MybatisRedisCache;
import com.lancoo.ccas52.entity.TaskProcess;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 各节点设置情况 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2022-12-22
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface TaskProcessMapper extends BaseMapper<TaskProcess> {

    Integer getReleaseStatus(@Param("taskId") Integer taskId);

    /**
     * 批量添加
     * @param taskProcessCollection
     * @return
     */
    int addBatch(@Param("taskProcessCollection") Collection<TaskProcess> taskProcessCollection);
}
